package com.ossjk.qlh.tgb.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ossjk.core.base.entity.BaseEntity;
import com.ossjk.core.system.annotation.OptionDictionary;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Copyright  Sat Jan 22 22:11:09 CST 2022 QLH. Tech Ltd. All rights reserved.
 * 
 * @Package: com.ossjk.qlh.projects
 * @ClassName: ActivityUser
 * @Description: ActivityUser-实体类
 * @author: chair
 * @date:  2022-01-22 22:11:10 
 */
@ApiModel(value = "参与活动的用户")
@Data
public class ActivityUser extends BaseEntity<ActivityUser> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@ApiModelProperty(value = "", required = true)
	@TableField("id")
	private String id;
	/**
	 * 活动信息id
	 */
	@ApiModelProperty(value = "活动信息id")
	@TableField("activity_id")
	private String activityId;
	/**
	 * 参与用户id
	 */
	@ApiModelProperty(value = "参与用户id")
	@TableField("uid")
	private String uid;
	/**
	 * 是否参与成功
	 */
	@OptionDictionary(key = "is-success")
	@ApiModelProperty(value = "是否参与成功")
	@TableField("is_success")
	private Integer isSuccess;
	/**
	 * 参与时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "参与时间")
	@TableField("participation_time")
	private Date participationTime;
	/**
	 * 付款时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "付款时间")
	@TableField("payment_time")
	private Date paymentTime;
	/**
	 * 是否付款
	 */
	@OptionDictionary(key = "is-payment")
	@ApiModelProperty(value = "是否付款")
	@TableField("is_payment")
	private Integer isPayment;
	/**
	 * 是否过期
	 */
	@OptionDictionary(key = "is-expired")
	@ApiModelProperty(value = "是否过期")
	@TableField("expired")
	private Integer expired;


	 
}
